package com.lishanyang.hibernate.dao;

import com.lishanyang.hibernate.entity.UserAnnotationsEntity;

public class UserAnnotationsEnityDAOImpl extends BaseHibernateDAO implements UserAnnotationsEnityDAO{

    @Override
    public void addUserAnnotationsEnity(UserAnnotationsEntity userAnnotationsEntity) {
        super.add(userAnnotationsEntity);
    }

    @Override
    public void deleUserAnnotationsEnity(UserAnnotationsEntity userAnnotationsEntity) {
        super.delete(userAnnotationsEntity);
    }

    @Override
    public void updateUserAnnotationsEnity(UserAnnotationsEntity userAnnotationsEntity) {
        super.update(userAnnotationsEntity);
    }

    @Override
    public UserAnnotationsEntity getUserAnnotationsEnityById(int i) {
        UserAnnotationsEntity userAnnotationsEntity=null;
        userAnnotationsEntity= (UserAnnotationsEntity) super.get(UserAnnotationsEntity.class ,i);
        return userAnnotationsEntity;
    }
}
